package com.example.texted.callback;

public class XiaoFang implements Runnable{
    public CallBackDemo callback;

    public XiaoFang (CallBackDemo callback){
        this.callback = callback;
    }

    public void run() {

        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("过了两秒小芳才回答");
        System.out.println("我去喝奶茶了");
        callback.result();
    }
}
